package org.pork.service;


import java.util.HashMap;

import org.apache.log4j.Logger;
import org.pork.util.LocalUtil;
import org.springframework.stereotype.Service;


@Service
public class MapService {
	
	/*		static HashMap<String, HashMap<String, Object>> map ;	
	
	static{
		map = new HashMap<String, HashMap<String, Object>>();	
	}
	*/
	private static final Logger logger = Logger.getLogger(MapService.class);
	
	public HashMap<String, HashMap<String, Object>> setMap(String epid, String x, String y) {
		
		logger.info(epid);
		logger.info(x);
		logger.info(y);
	
		LocalUtil util = new LocalUtil();
		
		util.setingHashMap(epid, x, y);
		
		
		
/*		HashMap<String, Object> map2 = new HashMap<String, Object>();
	
		map2.put("epid", epid);
		map2.put("x", x);
		map2.put("y", y);*/
		
//		map.put(epid, map2);
		
/*		Set<Entry<String, HashMap<String, Object>>> set = map.entrySet();
		Iterator<Entry<String,HashMap<String, Object>>> it = set.iterator();*/
		
/*		while(it.hasNext()){
			Map.Entry<String,HashMap<String, Object>> e = (Map.Entry<String, HashMap<String,Object>>)it.next();
			
			logger.info("key : " + e.getKey());
			logger.info("value : " + e.getValue());
		}*/
		
/*		Set<String> list = map.keySet();
		logger.info("맵리스트 : " + list);*/
		
		return util.getInstance();
	}
	
}
